<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Demo - Validform - 一行代码搞定整站的表单验证！ &copy;瑞金佬的前端路</title>
<link rel="stylesheet" href="demo/css/style.css" type="text/css" media="all" />
<link href="demo/css/demo.css" type="text/css" rel="stylesheet" />

<link href="plugin/datePicker/datePicker.css" type="text/css" rel="stylesheet" />
</head>

<body>  
<div class="header">
    <div class="wraper">
    	<h1><a href="http://validform.rjboy.cn">Validform</a></h1>
        <ul class="nav">
            <li><a href="http://validform.rjboy.cn/">关于Validform</a></li>
            <li><a href="demo.html" class="current">Demo</a></li>
            <li><a href="document.html">文档</a></li>
            <li><a href="help.html">帮助</a></li>
            <li><a href="http://validform.rjboy.cn/?p=1">网友讨论</a></li>
        </ul>
    </div>
</div>
<div class="main">
    <div class="wraper">
        <p class="tr"><a href="demo.html" class="blue ml10 fz12">返回示例首页&raquo;</a></p>
        
    	<h2 class="green">日期控件默认效果</h2>
        
        <form class="registerform" id="demo2" action="ajax_post.php" method="post">
            <table width="100%" style="table-layout:fixed;">
                <tr>
                    <td class="need" style="width:10px;">*</td>
                    <td style="width:70px;">昵称：</td>
                    <td style="width:360px;"><input type="text" value="" name="name" class="inputxt" datatype="s6-18" errormsg="昵称至少6个字符,最多18个字符！" /></td>
                    <td><div class="Validform_checktip"></div></td>
                </tr>
                <tr>
                    <td class="need"></td>
                    <td>出生日期：</td>
                    <td><input type="text" value="" name="birthday" class="inputxt mr10" plugin="datepicker" /></td>
                    <td><div class="Validform_checktip"></div></td>
                </tr>
                <tr>
                    <td class="need"></td>
                    <td></td>
                    <td colspan="2" style="padding:10px 0 18px 0;">
                        <input type="submit" value="提 交" /> <input type="reset" value="重 置" />
                    </td>
                </tr>
            </table>
        </form>
        
        <h2>说明：</h2>
        <div class="tipmsg">
        	<p>需要另外引入相关的 css 和 js 文件。</p>
            <p>初始化时可以设置以下参数：
<pre>
$.fn.datePicker.defaults = {
    month : undefined,
    year : undefined,
    showHeader : $.dpConst.SHOW_HEADER_SHORT,
    startDate : undefined,
    endDate	: undefined,
    inline : false,
    renderCallback : null,
    createButton : true,
    showYearNavigation : true,
    closeOnSelect : true,
    displayClose : false,
    selectMultiple : false,
    numSelectable : Number.MAX_VALUE,
    clickInput : false,
    rememberViewedMonth : true,
    selectWeek : false,
    verticalPosition : $.dpConst.POS_TOP,
    horizontalPosition : $.dpConst.POS_LEFT,
    verticalOffset : 0,
    horizontalOffset : 0,
    hoverClass : 'dp-hover'
};
</pre>
            </p>
        </div>
         
    </div>
</div>

<div class="footer">
    <div class="wraper">
        <p class="fl">Copyright &copy; <a href="http://www.eloocor.com" target="_blank">易罗客</a></p>
        <p class="fr"><a href="http://www.rjboy.cn" target="_blank">瑞金佬的前端路</a><b> | </b><a href="http://validform.rjboy.cn">Validform</a><b> | </b><a href="http://www.rjboy.cn/?p=789" target="_blank">hScrollpane</a><b> | </b><a href="http://www.rjboy.cn/?p=708" target="_blank">Xslider</a></p>
    </div>
</div>

<script type="text/javascript" src="http://validform.rjboy.cn/wp-content/themes/validform/js/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="demo/js/Validform_v5.3.2_min.js"></script>

<script type="text/javascript" src="plugin/datePicker/jquery.datePicker-min.js"></script>
<!--[if IE]><script type="text/javascript" src="plugin/datePicker/jquery.bgiframe.min.js"></script><![endif]-->

<script type="text/javascript">
$(function(){
	//$(".registerform").Validform();  //就这一行代码！;
		
	$(".registerform").Validform();
})
</script>
</body>
</html>